package br.com.pguide.utils;

import br.com.pguide.R;
import android.app.Activity;
import android.app.AlertDialog;
import android.widget.Toast;

public class Mensagem {
	
	public static void exibirMensagem(int title, int message, Activity activity) {
		AlertDialog.Builder dialog = new AlertDialog.Builder(activity);
		dialog.setTitle(title);
		dialog.setMessage(message);
		dialog.setNegativeButton(R.string.ok, null);
		dialog.show();
	}
	
	public static void exibirMensagem(String title, String message, Activity activity) {
		AlertDialog.Builder dialog = new AlertDialog.Builder(activity);
		dialog.setTitle(title);
		dialog.setMessage(message);
		dialog.setNegativeButton(R.string.ok, null);
		dialog.show();
	}
	
	public static void exibirMensagem(String message, Activity activity) {
		AlertDialog.Builder dialog = new AlertDialog.Builder(activity);
		dialog.setMessage(message);
		dialog.setNegativeButton(R.string.ok, null);
		dialog.show();
	}
	
	public static void exibirToastLongo(int message, Activity activity) {
		Toast.makeText(activity, message, Toast.LENGTH_LONG).show();
	}
	
	public static void exibirToastCurto(int message, Activity activity) {
		Toast.makeText(activity, message, Toast.LENGTH_SHORT).show();
	}
	
	public static void exibirToastCurto(String message, Activity activity) {
		Toast.makeText(activity, message, Toast.LENGTH_SHORT).show();
	}

}
